/**
 *
 * @author Ping
 */
package music.emotion;

import View.MainFrame;
import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import music.emotion.engine.Engine;
import music.emotion.engine.Loading;

public class MusicEmotion extends JFrame {

    public static void main(String[] args) {
        new Loading();
        new Engine();
        try {
            for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                if ("Windows".equals(info.getName())) {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) {
        }
        MainFrame mainFrame = new MainFrame();
        mainFrame.setLocationRelativeTo(null);
        mainFrame.setVisible(true);
        //mainFrame.SetCollectInfo();
    }
}
